package pers.fjl.common.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author fangjiale
 * @since 2021-01-07
 */
public class Supply extends Model<Supply> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品编号
     */
    @TableId(value = "cid", type = IdType.AUTO)
    private String cid;

    /**
     * 供应商编号
     */
    private String supplierId;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 供应单价
     */
    private String supplyPrice;

    /**
     * 供应日期
     */
    private LocalDateTime date;


    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getSupplyPrice() {
        return supplyPrice;
    }

    public void setSupplyPrice(String supplyPrice) {
        this.supplyPrice = supplyPrice;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    @Override
    protected Serializable pkVal() {
        return this.cid;
    }

    @Override
    public String toString() {
        return "Supply{" +
        "cid=" + cid +
        ", supplierId=" + supplierId +
        ", number=" + number +
        ", supplyPrice=" + supplyPrice +
        ", date=" + date +
        "}";
    }
}
